﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000187 RID: 391
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class CBIEELKJMGL : IMessage<CBIEELKJMGL>, IMessage, IEquatable<CBIEELKJMGL>, IDeepCloneable<CBIEELKJMGL>, IBufferMessage
	{
		// Token: 0x17000520 RID: 1312
		// (get) Token: 0x06001187 RID: 4487 RVA: 0x000327C1 File Offset: 0x000309C1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<CBIEELKJMGL> Parser
		{
			get
			{
				return CBIEELKJMGL._parser;
			}
		}

		// Token: 0x17000521 RID: 1313
		// (get) Token: 0x06001188 RID: 4488 RVA: 0x000327C8 File Offset: 0x000309C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return CBIEELKJMGLReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000522 RID: 1314
		// (get) Token: 0x06001189 RID: 4489 RVA: 0x000327DA File Offset: 0x000309DA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return CBIEELKJMGL.Descriptor;
			}
		}

		// Token: 0x0600118A RID: 4490 RVA: 0x000327E1 File Offset: 0x000309E1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CBIEELKJMGL()
		{
		}

		// Token: 0x0600118B RID: 4491 RVA: 0x000327E9 File Offset: 0x000309E9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CBIEELKJMGL(CBIEELKJMGL other) : this()
		{
			this.avatarId_ = other.avatarId_;
			this.avatarType_ = other.avatarType_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600118C RID: 4492 RVA: 0x0003281A File Offset: 0x00030A1A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CBIEELKJMGL Clone()
		{
			return new CBIEELKJMGL(this);
		}

		// Token: 0x17000523 RID: 1315
		// (get) Token: 0x0600118D RID: 4493 RVA: 0x00032822 File Offset: 0x00030A22
		// (set) Token: 0x0600118E RID: 4494 RVA: 0x0003282A File Offset: 0x00030A2A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AvatarId
		{
			get
			{
				return this.avatarId_;
			}
			set
			{
				this.avatarId_ = value;
			}
		}

		// Token: 0x17000524 RID: 1316
		// (get) Token: 0x0600118F RID: 4495 RVA: 0x00032833 File Offset: 0x00030A33
		// (set) Token: 0x06001190 RID: 4496 RVA: 0x0003283B File Offset: 0x00030A3B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AvatarType AvatarType
		{
			get
			{
				return this.avatarType_;
			}
			set
			{
				this.avatarType_ = value;
			}
		}

		// Token: 0x06001191 RID: 4497 RVA: 0x00032844 File Offset: 0x00030A44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as CBIEELKJMGL);
		}

		// Token: 0x06001192 RID: 4498 RVA: 0x00032852 File Offset: 0x00030A52
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(CBIEELKJMGL other)
		{
			return other != null && (other == this || (this.AvatarId == other.AvatarId && this.AvatarType == other.AvatarType && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001193 RID: 4499 RVA: 0x00032890 File Offset: 0x00030A90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AvatarId != 0U)
			{
				num ^= this.AvatarId.GetHashCode();
			}
			if (this.AvatarType != AvatarType.None)
			{
				num ^= this.AvatarType.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001194 RID: 4500 RVA: 0x000328EE File Offset: 0x00030AEE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001195 RID: 4501 RVA: 0x000328F6 File Offset: 0x00030AF6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001196 RID: 4502 RVA: 0x00032900 File Offset: 0x00030B00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AvatarType != AvatarType.None)
			{
				output.WriteRawTag(88);
				output.WriteEnum((int)this.AvatarType);
			}
			if (this.AvatarId != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.AvatarId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001197 RID: 4503 RVA: 0x0003295C File Offset: 0x00030B5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AvatarId);
			}
			if (this.AvatarType != AvatarType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.AvatarType);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001198 RID: 4504 RVA: 0x000329B4 File Offset: 0x00030BB4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CBIEELKJMGL other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AvatarId != 0U)
			{
				this.AvatarId = other.AvatarId;
			}
			if (other.AvatarType != AvatarType.None)
			{
				this.AvatarType = other.AvatarType;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001199 RID: 4505 RVA: 0x00032A04 File Offset: 0x00030C04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600119A RID: 4506 RVA: 0x00032A10 File Offset: 0x00030C10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 88U)
				{
					if (num != 120U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.AvatarId = input.ReadUInt32();
					}
				}
				else
				{
					this.AvatarType = (AvatarType)input.ReadEnum();
				}
			}
		}

		// Token: 0x0400074D RID: 1869
		private static readonly MessageParser<CBIEELKJMGL> _parser = new MessageParser<CBIEELKJMGL>(() => new CBIEELKJMGL());

		// Token: 0x0400074E RID: 1870
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400074F RID: 1871
		public const int AvatarIdFieldNumber = 15;

		// Token: 0x04000750 RID: 1872
		private uint avatarId_;

		// Token: 0x04000751 RID: 1873
		public const int AvatarTypeFieldNumber = 11;

		// Token: 0x04000752 RID: 1874
		private AvatarType avatarType_;
	}
}
